import { NgModule } from '@angular/core';
import { Routes, RouterModule } from '@angular/router';
import {IndexModule} from './index/index.module';
const routes: Routes = [
  {path:"",redirectTo:"/index/BookComponent",pathMatch: 'full' },
  {path:"index",loadChildren:()=>import("./index/index.module").then(mod=>IndexModule)},
];

@NgModule({
  imports: [RouterModule.forRoot(routes)],
  exports: [RouterModule]
})
export class AppRoutingModule { }
